package com.lhj.xxsc.product.service;

import com.lhj.xxsc.product.vo.AttrGroupWithAttrsVo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xxsc.common.utils.PageUtils;
import com.lhj.xxsc.product.entity.AttrGroupEntity;
import com.lhj.xxsc.product.vo.SpuItemAttrGroupVo;

import java.util.List;
import java.util.Map;

/**
 * 属性分组
 *
 * @author lhj
 * @email 1511619294@qq.com
 * @date 2020-10-01 21:08:49
 */
public interface AttrGroupService extends IService<AttrGroupEntity> {

	PageUtils queryPage(Map<String, Object> params);

	PageUtils queryPage(Map<String, Object> params, Long catelogId);


	List<AttrGroupWithAttrsVo> getAttrGroupWithAttrsByCatelogId(Long catelogId);


	/**
	 * 根据我们的spuId 来获取对应的spu 规格参数
	 *
	 * @param spuId
	 * @return
	 */
	List<SpuItemAttrGroupVo> getAttrGroupWithAttrsBySpuId(Long spuId, Long catalogId);
}

